package com.itheima.sh.f_array_06;

public class Demo02 {
    public static void main(String[] args) {
        int [] money={16,26,36,6,100};
        int sum=0;

        for (int i = 0; i < money.length; i++) {
            sum+=money[i];
        }
        System.out.println("该销售部门的总额是：" + sum);
        double avgsum=sum*1.0/money.length;
        System.out.println("该部门的平均销售额是：" + avgsum);
    }
}
